package org.spiderflow.common.model;

/**
 * @author zsh
 */
public class JsonBean {

    private Integer code = 1;

    private String message = "执行成功";

    private Object data;

    public JsonBean(Integer code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public JsonBean(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public JsonBean(Object data) {
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public JsonBean setData(Object data) {
        this.data = data;
        return this;
    }
}
